import {ApiGET, ApiPOST} from "../utils/Request";

/**
 * 登录
 * @param code
 */
export const login_data = (code: string) => ApiGET('/api/wxlogin', {code})

/**
 * 查看简历
 */
export const resumeDetail_data = (id: string) => ApiGET('/api/resume', {user_id: id})

/**
 * 用户信息（自己）
 */
export const user_data = () => ApiGET('/api/user')

/**
 * 编辑个人资料/发布简历
 * @param data
 */
export const editProfile_data = (data: any) => ApiPOST('/api/editProfile', {...data})

/**
 * 学习圈-我的
 * @param data
 * @constructor
 */
export const MyArticleList_data = (data: any) => ApiGET('/api/MyArticleList', {...data})


/**
 * 收藏人才或HR
 */
export const collectPeople_data = (focus_user_id: string) => ApiPOST('/api/collectPeople', {focus_user_id})

